package demo;

import java.util.*;
import java.sql.*;

import static java.lang.Math.*;
//不是以下都导进来 需要用到谁 就导入谁
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-05-17
 * Time: 12:57
 */
public class Test {
    int a = 10;

    public void func(){
        System.out.println(a);
    }
    public static void main1(String[] args) {
        java.util.Date date = new java.util.Date();
        System.out.println(date.getTime());
        /*int[] array = {1,2,3,4};
        Arrays.toString(array);*/
    }

    public static void main(String[] args) {
        double x = 30;
        double y = 40;

        //静态导入的方式写起来更方便
        //double result = Math.sqrt(Math.pow(x, 2) + pow(y, 2));
        double result = sqrt(pow(x, 2) + pow(y, 2));
        System.out.println(result);
    }
}
